<?php
	add_filter('manage_store_posts_columns', 'admin_alert_header_columns', 10, 1);
	add_action('manage_store_posts_custom_column', 'admin_print_image', 10, 2);

	function admin_alert_header_columns($columns)
	{
		if (!isset($columns['alert_img']))
			$columns['alert_img'] = "";

		return $columns;
	}

	function admin_print_image($column_name, $post_id)
	{	   
		switch ($column_name)
		{
			case 'alert_img':
				
                global $wpdb;
                $qr = "
                SELECT post_content FROM wp_posts WHERE ID = $post_id AND post_type = 'store'
                ";
                $rs = $wpdb->get_results($qr);
                
                if($rs[0]->post_content == '')
                    echo "<img title='No Description' src='http://findicons.com/files/icons/99/office/128/alert.png' style='width: 16px;height: 16px;margin-top:10px'/>";
				break;

			default:
				break;
		}
	} ?>
    
